<html>
<body>
<?php
$a = array("orange", "apple","peach");
$b = array(0=>"orange", 1=>"apple",2=>"peach");

echo $a[0];
echo "<br/>";
echo $b[1];
echo "<br/>";


$c = array("os"=>"Windows XP", "lang"=>"Chinese","sp"=>"Service Pack 3");
echo $c["os"],"<br />";
echo $c["lang"],"<br />";
echo $c["sp"];
echo "<br/>";


$d = array("aa"=>100, "bb"=>200,"dd"=>500);
$d["cc"] = 300;  
unset($d["bb"]);

foreach ($d as $key=> $value)
{
echo $key.": ".$value."<br />";

}
?>
</body>

</html>
